Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MSDFT method #77

Merged
merged 13 commits into from
Dec 24, 2024
Merged

Add MSDFT method #77

merged 13 commits into from
Dec 24, 2024

Conversation

sunqm
Copy link
Contributor

@sunqm sunqm commented Nov 4, 2024

@baopengbp This implementation basically follows your original version. I'm not clear what are the "sm-t" eigenvalues, so I didn't implement them in this version. Please have a look whether this implementation makes sense.

pyscf/msdft/noci.py Outdated Show resolved Hide resolved
@baopengbp
Copy link
Contributor

@baopengbp This implementation basically follows your original version. I'm not clear what are the "sm-t" eigenvalues, so I didn't implement them in this version. Please have a look whether this implementation makes sense.

The "sm-t" use the difference energy difference between mix state and Ms=1 triplet state as the coupling between two symmetry-adapted mix state. This can be more accurate than the approximate HF coupling.

@sunqm sunqm marked this pull request as ready for review November 10, 2024 22:53
@sunqm
Copy link
Contributor Author

sunqm commented Nov 10, 2024

@baopengbp the code can reproduce the result of the script you sent me. To optimize the performance, I have changed most of your original implementation. Please check if the new implementation make sense to you.

@sunqm sunqm requested a review from baopengbp November 13, 2024 14:25
@sunqm sunqm requested review from fishjojo and removed request for baopengbp December 16, 2024 02:20
@sunqm sunqm merged commit bb743d1 into pyscf:master Dec 24, 2024
4 checks passed
@sunqm sunqm deleted the msdft branch December 24, 2024 17:36
stephen-quiton pushed a commit to stephen-quiton/pyscf-forge that referenced this pull request Jan 1, 2025
* Add MSDFT method

* Using generalized Slater-Condon rules for HF integrals in NOCI

* Add comments

* typo

* Lint

* Fix bug in nuclear energy treatments

* Error in sm_t

* Update tests

* Update tests

* Adjust threshold in tests

* Adjust tests

* Numerical noises in mcpdft tests
sunqm added a commit that referenced this pull request Jan 20, 2025
* begin khf_stagger implementation

* Save progress

* More progress

* Create tests, delete __init__.py s

* Progress on tests. Something might be up with split-scf

* Fix split scf

* Renaming symbols

* refactoring

* Begin example file, add KRKS compatibility

* Progress on KRKS, fixing bug with regular version

* Fixed regular

* Cleanup, finalize example

* Add documentation

* Formatting

* pep-625 compliance

* Compatibility issue when building aarch64 wheel

* Update pypi upload configurations

* Add MSDFT method (#77)

* Add MSDFT method

* Using generalized Slater-Condon rules for HF integrals in NOCI

* Add comments

* typo

* Lint

* Fix bug in nuclear energy treatments

* Error in sm_t

* Update tests

* Update tests

* Adjust threshold in tests

* Adjust tests

* Numerical noises in mcpdft tests

* Remove 2d code

* Formatting

* Fix split-scf bug. Switch to FFTDF in tests (verified with QChem).

* Small cleanup

* Fix typos

* Fix flake8, typos, unneeded print statements

* turn build_probe_cell, modified_madelung, converged_modified into static methods of KHF_stagger

* Refactoring staggered mesh exchange calculation

* Refactor kernel function. Non-scf and split-scf now just asserts mf.converged instead of calling mf.kernel

* fix flake8

* Rename functions and fix documentation for clairity

* Remove xcfun

---------

Co-authored-by: Qiming Sun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants